<html>
<head>
<title>Add cms_user</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link media="all" href="/cms/css/cms.min.css" type="text/css" rel="stylesheet" /> 
<link rel="stylesheet" type="text/css" href="/cms/css/tag/token-input.css" />
<script  type="text/javascript" src="/cms/js/cms.1.1.min.js"></script>
<script type="text/javascript" src="/cms/js/tag/jquery.tokeninput.js"></script> 
<script language="JavaScript" src="/cms/js/cleditor/jquery.cleditor.min.js"></script>
<script language="JavaScript" src="/cms/js/jquery.validate.js"></script>
<script language="JavaScript" src="/cms/js/autocomplete/textarea.js"></script>

</head>

<body>
{#include file="$navigation"#}
<div style="float:right;" id="login"></div>

<script>
$(document).ready(function() {	

});	
  function validate_form(form){
	  if (validator.form())  form.submit(); else alert('Some fields has error. Please check and resubmit');
  }
</script>

<H1><span id="parent_key_label"></span>Cms user</H1>
<form name="form_showadd" method="post" id="form_showadd" action="{#$self_url#}" >	
<div class='tableWrapper' style="width:100%;margin:0;padding:0;">
  <div class='tableHeader' >

	<ul class="tableActions">
  <li><input class="psbutton" onmouseover="this.className='psbuttonhover'" onmouseout="this.className='psbutton'" name="Submit" value=" 儲存 " onclick="form.subaction.value='edit_after_add'; form.submit();" type="button"></li><li><input class="psbutton" onmouseover="this.className='psbuttonhover'" onmouseout="this.className='psbutton'" type="submit" name="Submit" value=" 確定 "></li><li><input class="psbutton" onmouseover="this.className='psbuttonhover'" onmouseout="this.className='psbutton'" name="dummy" value=" 取消 " size="3" onclick="javascript:window.location.href='{#$self_url#}/list'" type="button"></li>
	</ul>

  <div class='clear'></div>
  <div class='corner left'></div>
  <div class='corner right'></div>
  </div>	
<table border="0" cellspacing='0' >

<tr id="tr_login"><td><B>login</B></td>
<td id="td_login"><input id="field_login" type="text" name="login" value=""></td></tr>
<tr id="tr_password"><td><B>密碼</B></td>
<td id="td_password"><input id="field_password" type="text" name="password" value=""></td></tr>
<tr id="tr_salt"><td><B>salt</B></td>
<td id="td_salt"><input id="field_salt" type="text" name="salt" value=""></td></tr>
<tr id="tr_name"><td><B>英文名稱</B></td>
<td id="td_name"><input id="field_name" type="text" name="name" value=""></td></tr>
<tr id="tr_email"><td><B>電郵地址</B></td>
<td id="td_email"><input id="field_email" type="text" name="email" value=""></td></tr>
<tr id="tr_last_change_password"><td><B>最近更新密碼</B></td>
<td id="td_last_change_password"><input id="field_last_change_password" type="text" name="last_change_password" value=""></td></tr>
<tr id="tr_environment"><td><B>environment</B></td>
<td id="td_environment"><input id="field_environment" type="text" name="environment" value=""></td></tr>
<tr id="tr_navigation"><td><B>導航列</B></td>
<td id="td_navigation"><input id="field_navigation" type="text" name="navigation" value=""></td></tr>
<tr id="tr_default_cms"><td><B>default_cms</B> <img src="/cms/images/ico/info.gif" class="tips" title="relative path of default CMS path" /></td>
<td id="td_default_cms"><input id="field_default_cms" type="text" name="default_cms" value=""></td></tr>
<tr id="tr_remark"><td><B>備註</B></td>
<td id="td_remark"><input id="field_remark" type="text" name="remark" value=""></td></tr>

  <tr>
    <td>&nbsp;</td>
    <td>
     	
    <input type="hidden" name="action" value="add"><input name="subaction" type="hidden">
     <ul class="tableActions">
    <li><input class="psbutton" onmouseover="this.className='psbuttonhover'" onmouseout="this.className='psbutton'" name="Submit" value=" 儲存 " onclick="form.subaction.value='edit_after_add'; form.submit();" type="button"></li><li><input class="psbutton" onmouseover="this.className='psbuttonhover'" onmouseout="this.className='psbutton'" type="submit" name="Submit" value=" 確定 "></li><li><input class="psbutton" onmouseover="this.className='psbuttonhover'" onmouseout="this.className='psbutton'" name="dummy" value=" 取消 " size="3" onclick="javascript:window.location.href='{#$self_url#}/list'" type="button"></li>
    </ul>
  </td>
  </tr>
</table>

</form>

<script type="text/javascript"> 	
$(function(){
  $(".tips").tipTip({defaultPosition: "right", edgeOffset: 10});
}); 
</script>

<!--POSTRUNJS-->
</body>
</html>
